<template>
  <div>
    <div class="box">
        <h2>我是父元素</h2>
    </div>
    <Son/>
  </div>
</template>

<script>
import Son from './Son'
export default {
    // 生命周期
    beforeMount() {
        
    },
    components: {
        Son
    }
}
</script>

<style scoped>
/* scoped 让样式在当前组件生效*/
.box {
    background: skyblue;
}
</style>